<template>
  <div class="home">
    <img class="banner" src="@/assets/组 11@2x.png"/>
    <el-select  v-model="value" placeholder="全部分类" style="color: #333;">
      <el-option
        v-for="item in options"
        :key="item.value"
        :label="item.label"
        :value="item.value">
      </el-option>
    </el-select>
    <el-main>
      <!-- 商品区域开始 -->
      <market-list></market-list>
      <!-- 商品区域结束 -->
      <el-button class="look-btn">查看更多</el-button>
      <!-- 数字藏品区域开始 -->
      <div class="figure ">
        <div class="title">
          <h1>什么是NFT数字藏品</h1>
          <p class="icon"></p>
          <p class="text">开启全新的数字艺术收藏之旅</p>
        </div>
        <div class="content">
          <div class="content-block">
            <img src="@/assets/one.png" />
            <div class="detail">
              <p class="content-txt">唯一性</p>
              <p class="introduce">每个数字藏品都是独一无二的，且具有不同属性，这些属性通常存储在元数据中，且铸造后不可篡改。</p>
            </div>
          </div>
          <div class="content-block">
            <img src="@/assets/two.png" />
            <div class="detail">
              <p class="content-txt">唯一性</p>
              <p class="introduce">每个数字藏品都是独一无二的，且具有不同属性，这些属性通常存储在元数据中，且铸造后不可篡改。</p>
            </div>
          </div>
          <div class="content-block">
            <img src="@/assets/three.png" />
            <div class="detail">
              <p class="content-txt">唯一性</p>
              <p class="introduce">每个数字藏品都是独一无二的，且具有不同属性，这些属性通常存储在元数据中，且铸造后不可篡改。</p>
            </div>
          </div>
        </div>

      </div>
      <!-- 数字藏品区域结束 -->
    </el-main>
    <div class="bgm-top"></div>
    <el-footer>
      <!-- 数字收藏区域开始 -->
      <div class="footer">
        <div class="footer-content">
          <h2>NFT数字收藏</h2>
          <p class="title">全球领先的数字藏品电商平台</p>
          <p class="intro">未来是一个万物上链的数字世界，数字藏品应用不再局限于艺术品、收藏品，将会扩展到数字身份、版权许可、品 牌授权等，NFT的使命是：构建一个全球领先的数字藏品电商平台。</p>
        </div>
        <div class="footer-block">
          <div class="block-demo">
            <div class="block">
              <p class="block-title">认证品牌+创作者自营品牌</p>
              <p class="block-txt">NFT对于认证过的创作者给予认证标识，确保作品真实性和质量，后续逐步将认证的权利让渡给社区。</p>
            </div>
          </div>
          <div class="block-demo">
            <div class="block">
              <p class="block-title">认证品牌+创作者自营品牌</p>
              <p class="block-txt">NFT对于认证过的创作者给予认证标识，确保作品真实性和质量，后续逐步将认证的权利让渡给社区。</p>
            </div>
          </div>
          <div class="block-demo">
            <div class="block">
              <p class="block-title">认证品牌+创作者自营品牌</p>
              <p class="block-txt">NFT对于认证过的创作者给予认证标识，确保作品真实性和质量，后续逐步将认证的权利让渡给社区。</p>
            </div>
          </div>
          <div class="block-demo">
            <div class="block">
              <p class="block-title">认证品牌+创作者自营品牌</p>
              <p class="block-txt">NFT对于认证过的创作者给予认证标识，确保作品真实性和质量，后续逐步将认证的权利让渡给社区。</p>
            </div>
          </div>
        </div>
      </div>
      <!-- 数字收藏区域开始 -->
      <!-- 底部区域 -->
      <layout-footer style="margin-top: -30px;"></layout-footer>
    </el-footer>
  </div>
</template>

<script>
import LayoutFooter from '@/components/LayoutFooter.vue'
import MarketList from '../market/components/MarketList.vue'

export default {
  name: 'home',
  components: {
    LayoutFooter,
    MarketList
  },
  data () {
    return {
      options: [
        {
          value: '选项1',
          label: '全部分类'
        },
        {
          value: '选项2',
          label: '分类1'
        }, {
          value: '选项3',
          label: '分类2'
        }, {
          value: '选项4',
          label: '分类3'
        }, {
          value: '选项5',
          label: '分类4'
        }],
      value: ''
    }
  }
}
</script>

<style lang="scss" scoped>
.home {
  width: 100%;
  background: #F8FBFF;

  .banner {
    left: 0;
    width: 100%;
    height: 391px;
    margin-top: 68px;
  }
  ::v-deep .el-select {
    top: 28px;
    padding-left: 95px;
    color: #333;

    .el-input__inner {
      width: 216px;
      height: 50px;
      background: #fff;
      border: 1px solid #2C2C34;
      opacity: 1;
      border-radius: 12px;
      font-size: 16px;
      color: #333;
    }
    .el-input__inner::placeholder {
      color: #333;
    }
    .el-select__caret {
      color: #333;
    }
  }
  .el-main {
    margin-top: 6px;
    padding-right: 86px;

    .look-btn {
      width: 372px;
      height: 56px;
      margin-left: 33%;
      margin-top: 10px;
      background: #F8FBFF;
      color: #333;
      font-size: 16px;
      border: 2px solid #2C2C34;
      opacity: 1;
      border-radius: 12px;
    }

    .figure {
      margin-left: 86px;

      .title {
        margin-top: 146px;
        h1{
          width: 445px;
          height: 65px;
          margin: 0 auto;
          font-size: 49px;
          font-weight: bold;
          line-height: 65px;
          color: #333333;
          opacity: 1;
        }
        .icon{
          width: 257px;
          height: 42px;
          margin-top: -38px;
          margin-left: 48%;
          background: #30DFE8;
          opacity: 1;
        }
        .text{
          margin-top:-5px;
          text-align: center;
          font-size: 16px;
          font-weight: 400;
          line-height: 21px;
          color: #333;
          opacity: 1;
        }
      }

      .content {
        margin-top: 125px;

        .content-block {
          float: left;
          width: 370px;
          height: 260px;
          margin-right:28px;
          background: #FFF;
          opacity: 1;
          border-radius: 18px;

          img {
            width: 190px;
            height: 190px;
            margin-top: -80px;
            margin-left: 148px;
          }

          .detail {
            padding-left: 26px;

            .introduce {
              width: 296px;
              height: 59px;
              font-size: 13px;
              font-weight: 400;
              line-height: 21px;
              color: #666;
            }
          }
        }
      }
    }
  }

  .el-footer {
    width: 100%;
    height: auto;
    padding: 0;
    margin-top: 94px;

    .footer{
      width: 100%;
      height: 688px;
      padding-bottom: 40px;
      background: #fff;
      background-image: url("../../assets/下蓝色@2x.png");
      background-size: 552px 586px;
      background-repeat: no-repeat;
      background-position-x: right;

      .footer-content {

        h2 {
          width: 122px;
          height: 26px;
          margin: 0 auto;
          padding-top: 106px;
          font-size: 20px;
          font-weight: bold;
          line-height: 26px;
          color: #333;
        }

        .title{
          width: 390px;
          height: 40px;
          margin: 0 auto;
          padding-top: 18px;
          padding-bottom: 11px;
          font-size: 30px;
          font-weight: 400;
          line-height: 40px;
          color: #333;
        }
        .intro{
          width: 700px;
          height: 38px;
          margin: 0 auto;
          text-align: center;
          font-size: 14px;
          font-weight: 400;
          line-height: 19px;
          color: #666;
        }
      }

      .footer-block {
        margin-top: 61px;
        margin-left: 163px;

        .block-demo {
          width: 500px;
          height: 134px;
          float: left;
          margin-top: 24px;
          margin-right: 40px;
          background: #2C2C34;
          opacity: 1;
          border-radius: 10px;
        }

        .block {
          padding-top: 6px;
          padding-left: 31px;
          padding-right: 40px;

          .block-title {
            width: 188px;
            height: 21px;
            font-size: 16px;
            font-weight: 400;
            line-height: 21px;
            color: #FFF;
            opacity: 1;
          }

          .block-txt {
            width: 420px;
            height: 59px;
            margin-top: -2px;
            font-size: 14px;
            font-weight: 400;
            line-height: 19px;
            color: #FFF;
            opacity: 1;
          }
        }
      }
    }
  }
}

.bgm-top {
  width: 100%;
  height: 203px;
  margin-top: -110px;
  margin-bottom: -94px;
  background-image: url("../../assets/上蓝色@2x.png");
  background-size: 552px 203px;
  background-repeat: no-repeat;
  background-position-x: right;
}

</style>
